<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Dotnet2-web 后台管理系统</title>
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->
<%@ include file="/jsp/common/commonJs.jsp"%>
</head>
<body>
	<!--header-->
	<%@ include file="/jsp/top.jsp"%>
	<!--header-->
	<!--aside nav-->
	<%@ include file="/jsp/left.jsp"%>
	<!--aside nav  -->
	<form id="add" method="post">
		<input type="hidden" name="fieldId" value="${fieldId}" />
		<section class="rt_wrap content mCustomScrollbar" style="margin-top: 10px;">
			<div class="page_title">
	       		<a class="fr top_rt_btn" href="javascript:js.back()">返回上一页</a>
	     	</div>
			<ul class="ulColumn2">
				<li>
					<span class="item_name" style="width: 120px;">属性值：</span>
					<c:forEach items="${fieldValueList}" var="field">
						<input type="radio" name="fieldValueId" value="${field.id}"/>${field.fieldValue}
					</c:forEach> 
				</li>
				<li>
					<span class="item_name" style="width: 120px;">属性价格：</span> 
					<input type="text" name="fieldPrice" class="textbox textbox_295" datatype="*" errormsg="属性价格为数字" placeholder="属性价格为数字" />
				</li>
				<li>
					<span class="item_name" style="width: 120px;"></span> 
					<input type="button" onclick="add('${productId}')" value="添加" class="link_btn" />
				</li>
			</ul>
		</section>
	</form>
<!-- 表单校验 -->
<script>
var form;
$(function(){
	form=$("#add").Validform({
		tiptype:3
	});
});
function add(id){
	if(form.check()){
		js.addEntity('add','field/addFieldPrice.do','field/toFieldList.do?productId='+id,'添加属性价格成功!','添加失败！请查看此属性值是否已有价格!');
	}
}
</script>
</body>
</html>